﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Dala.Logger.Entity;

namespace Dala.Samples.LoggerTest
{
    public static class LoggerHelper
    {
        public static int? ProjectId { get; set; }
        public static int? TaskListId { get; set; }

        public static void Log(LogServiceInformation logServiceInformation, Type type, LogType logType)
        {
            logServiceInformation.ProjectId = ProjectId;
            logServiceInformation.TaskListId = TaskListId;

            var logger = new Dala.Logger.Logger(type);
            logger.Log(logType, logServiceInformation);
        }
    }
}